S.Node.Station = function (option) {
    var me = this;
    Q.doSuperConstructor(me, S.Node.Station, [option.name]);
    me.setOption(me.option);
    me.setOption(option);
};

S.Node.Station.prototype = {
    xtype: 'station',
    option: {
        zIndex: 10,
        movable: false,
        selectable : true,
        image: Q.Shapes.getShape(Q.Consts.SHAPE_CIRCLE, 20, 20),
        style: {
            alpha: 1,
            label: {
                position: 'CENTER_TOP',
                padding: '15 15',
                anchor: {
                    position: 'CENTER_MIDDLE'
                },
                font: {
                    size: 24
                }
            },
            shape: {
                fill: {
                    color: '#fff'
                },
                stroke: {
                    style: '#000'
                }
            }
        }
    },

    setOption: function (option) {
        var me = this;
        S.setOption(me, option);
    },

    setCrowding: function (degree) {
        var me = this, crowding = me.crowding;
        if (!crowding) {
            crowding = new S.NodeUI.Crowding(me);
            me.addUI(crowding);
            me.crowding = crowding;
        }
        crowding.setData(degree);
    }
};

Q.extend(S.Node.Station, Q.Node);

